package com.atguigu.gmall.feign.product;


import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.to.CategoryTreeTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author:lyd
 * @Date:2023/8/18 18:56
 * @Version:1.0
 * @Description
 **/
@FeignClient(value = "service-product",
        contextId = "CategoryTreeFeignClient")
public interface CategoryTreeFeignClient {

    @GetMapping("/api/inner/product/getCategoryTree")
    Result<List<CategoryTreeTo>> getCategoryTree();
}
